Optimal. Leaf size=70 \[ \frac{15 \sec (a+b x)}{8 b}-\frac{15 \tanh ^{-1}(\cos (a+b x))}{8 b}-\frac{\csc ^4(a+b x) \sec (a+b x)}{4 b}-\frac{5 \csc ^2(a+b x) \sec (a+b x)}{8 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0428248, antiderivative size = 70, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235, Rules used = {2622, 288, 321, 207} \[ \frac{15 \sec (a+b x)}{8 b}-\frac{15 \tanh ^{-1}(\cos (a+b x))}{8 b}-\frac{\csc ^4(a+b x) \sec (a+b x)}{4 b}-\frac{5 \csc ^2(a+b x) \sec (a+b x)}{8 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2622
Rule 288
Rule 321
Rule 207
Rubi steps
\begin{align*} \int \csc ^5(a+b x) \sec ^2(a+b x) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{x^6}{\left (-1+x^2\right )^3} \, dx,x,\sec (a+b x)\right )}{b}\\ &=-\frac{\csc ^4(a+b x) \sec (a+b x)}{4 b}+\frac{5 \operatorname{Subst}\left (\int \frac{x^4}{\left (-1+x^2\right )^2} \, dx,x,\sec (a+b x)\right )}{4 b}\\ &=-\frac{5 \csc ^2(a+b x) \sec (a+b x)}{8 b}-\frac{\csc ^4(a+b x) \sec (a+b x)}{4 b}+\frac{15 \operatorname{Subst}\left (\int \frac{x^2}{-1+x^2} \, dx,x,\sec (a+b x)\right )}{8 b}\\ &=\frac{15 \sec (a+b x)}{8 b}-\frac{5 \csc ^2(a+b x) \sec (a+b x)}{8 b}-\frac{\csc ^4(a+b x) \sec (a+b x)}{4 b}+\frac{15 \operatorname{Subst}\left (\int \frac{1}{-1+x^2} \, dx,x,\sec (a+b x)\right )}{8 b}\\ &=-\frac{15 \tanh ^{-1}(\cos (a+b x))}{8 b}+\frac{15 \sec (a+b x)}{8 b}-\frac{5 \csc ^2(a+b x) \sec (a+b x)}{8 b}-\frac{\csc ^4(a+b x) \sec (a+b x)}{4 b}\\ \end{align*}
Mathematica [A] time = 4.55911, size = 129, normalized size = 1.84 \[ -\frac{\csc ^4\left (\frac{1}{2} (a+b x)\right )+14 \csc ^2\left (\frac{1}{2} (a+b x)\right )+\frac{\sec ^2\left (\frac{1}{2} (a+b x)\right ) \left (-14 \tan ^2\left (\frac{1}{2} (a+b x)\right )+\cos (a+b x) \left (\sec ^4\left (\frac{1}{2} (a+b x)\right )-8 \left (-15 \log \left (\sin \left (\frac{1}{2} (a+b x)\right )\right )+15 \log \left (\cos \left (\frac{1}{2} (a+b x)\right )\right )+8\right )\right )+78\right )}{\tan ^2\left (\frac{1}{2} (a+b x)\right )-1}}{64 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.022, size = 78, normalized size = 1.1 \begin{align*} -{\frac{1}{4\,b \left ( \sin \left ( bx+a \right ) \right ) ^{4}\cos \left ( bx+a \right ) }}-{\frac{5}{8\,b \left ( \sin \left ( bx+a \right ) \right ) ^{2}\cos \left ( bx+a \right ) }}+{\frac{15}{8\,b\cos \left ( bx+a \right ) }}+{\frac{15\,\ln \left ( \csc \left ( bx+a \right ) -\cot \left ( bx+a \right ) \right ) }{8\,b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.968699, size = 107, normalized size = 1.53 \begin{align*} \frac{\frac{2 \,{\left (15 \, \cos \left (b x + a\right )^{4} - 25 \, \cos \left (b x + a\right )^{2} + 8\right )}}{\cos \left (b x + a\right )^{5} - 2 \, \cos \left (b x + a\right )^{3} + \cos \left (b x + a\right )} - 15 \, \log \left (\cos \left (b x + a\right ) + 1\right ) + 15 \, \log \left (\cos \left (b x + a\right ) - 1\right )}{16 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.98859, size = 374, normalized size = 5.34 \begin{align*} \frac{30 \, \cos \left (b x + a\right )^{4} - 50 \, \cos \left (b x + a\right )^{2} - 15 \,{\left (\cos \left (b x + a\right )^{5} - 2 \, \cos \left (b x + a\right )^{3} + \cos \left (b x + a\right )\right )} \log \left (\frac{1}{2} \, \cos \left (b x + a\right ) + \frac{1}{2}\right ) + 15 \,{\left (\cos \left (b x + a\right )^{5} - 2 \, \cos \left (b x + a\right )^{3} + \cos \left (b x + a\right )\right )} \log \left (-\frac{1}{2} \, \cos \left (b x + a\right ) + \frac{1}{2}\right ) + 16}{16 \,{\left (b \cos \left (b x + a\right )^{5} - 2 \, b \cos \left (b x + a\right )^{3} + b \cos \left (b x + a\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.18195, size = 220, normalized size = 3.14 \begin{align*} \frac{\frac{{\left (\frac{16 \,{\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} - \frac{90 \,{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} - 1\right )}{\left (\cos \left (b x + a\right ) + 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) - 1\right )}^{2}} - \frac{16 \,{\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} + \frac{{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} + \frac{128}{\frac{\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} + 1} + 60 \, \log \left (\frac{{\left | -\cos \left (b x + a\right ) + 1 \right |}}{{\left | \cos \left (b x + a\right ) + 1 \right |}}\right )}{64 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]